﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace AHP2
{
    public partial class FrmMain : Form
    {
        private MapPane _paneMap = null;
        private MapTreePane _paneMapTree = null;
        private SettingsPane _paneSetting = null;        

        public FrmMain()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            InitPanes();
        }

        #region Menu MapView
        private void OnMenuZoomIn_Click(object sender, EventArgs e)
        {

        }

        private void OnMenuZoomOut_Click(object sender, EventArgs e)
        {

        }

        private void OnMenuPan_Click(object sender, EventArgs e)
        {

        }

        private void OnMenuFullScreen_Click(object sender, EventArgs e)
        {

        }
        #endregion

        #region Menu Map Operation
        private void OnMenuNewMap_Click(object sender, EventArgs e)
        {

        }

        private void OnMenuCloseMap_Click(object sender, EventArgs e)
        {

        }

        private void OnMenuAddLayer_Click(object sender, EventArgs e)
        {

        }

        private void OnMenuExit_Click(object sender, EventArgs e)
        {

        }
        #endregion

        #region Toolbar MapView
        private void OnMapZoomIn_Click(object sender, EventArgs e)
        {

        }

        private void OnMapZoomOut_Click(object sender, EventArgs e)
        {

        }

        private void OnMapPan_Click(object sender, EventArgs e)
        {

        }

        private void OnMapFullScreen_Click(object sender, EventArgs e)
        {

        }
        #endregion

        #region Form Settings
        private void InitPanes()
        {
            _paneMapTree = new MapTreePane();
            _paneMapTree.Show(this.dockPanel1, DockState.DockLeft);

            _paneSetting = new SettingsPane();
            _paneSetting.Show(this.dockPanel1, DockState.DockRightAutoHide);

            _paneMap = new MapPane();
            _paneMap.Show(this.dockPanel1);
        }
        #endregion
    }
}
